package us.clubadvocate.client.app;

import com.google.gwt.core.client.GWT;

import us.clubadvocate.client.AsyncPortalProvider;
import us.clubadvocate.client.Portal;

public class AppProvider extends AsyncPortalProvider
{
  static final String name = "index";

  // ---------------------------------------------------------------------------
  // ---------------------------------------------------------------------------
  
  @Override
  public void onSuccess()
  {
    Portal p = new App();
    controller.present(p, name);
  }
  // ---------------------------------------------------------------------------
  
  @Override
  public void startAsync()
  {
    GWT.runAsync(this);
  }
  
  // ----------------------------------------------------------------------------
  
  @Override
  public String getName()
  {
    return name;
  }
}
